package com.example.mapper;

import com.example.entity.OrderMain;
import com.example.model.OrderMainDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * OrderMain 实体与DTO映射器
 * @author CodeGenerator
 * @date 2025-08-30
 */
@Mapper
public interface OrderMainMapper {

    OrderMainMapper INSTANCE = Mappers.getMapper(OrderMainMapper.class);

    /**
     * 实体转DTO
     */
    OrderMainDTO toDTO(OrderMain orderMain);

    /**
     * DTO转实体
     */
    OrderMain toEntity(OrderMainDTO orderMainDTO);
}
